from flask_apscheduler import APScheduler
from flask_caching import Cache
from flask_cors import CORS
from flask_limiter import Limiter
from flask_mail import Mail
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy

from eAuth.utils.limit import LimitCustom

db = SQLAlchemy()
migrate = Migrate()
cors = CORS()
cache = Cache()
scheduler = APScheduler()
limiter = Limiter(key_func=LimitCustom.limit_policy, default_limits=['5000/day', '1000/hour', '200/minute', '5/second'])
mail = Mail()
